﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace AddFileHeaders
{

    internal partial class SingleFilter : UserControl
    {

        public event EventHandler FilterDeleted;

        private Filter filter = null;
        public Filter CurrentFilter
        {
            get { return this.filter; }
        }

        public SingleFilter()
        {
            InitializeComponent();
        }

        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (this.FilterDeleted != null) { this.FilterDeleted(this, e); }
        }

        public void SetFilter(Filter filter)
        {
            this.filter = filter;
            this.lblText.Text = filter.ToString();
        }

    }
}
